Patch from Scott McKellar to use new osrfHash iterator key function
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 12 Apr 2008 02:49:38 +0000 (02:49 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 12 Apr 2008 02:49:38 +0000 (02:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9318 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/c-apps/oils_cstore.c

index 440ec4e..5dd510e 100644 (file)
@@ -71,7 +71,7 @@ static char* getSourceDefinition( osrfHash* );
 
 static dbi_conn writehandle; /* our MASTER db connection */
 static dbi_conn dbhandle; /* our CURRENT db connection */
-osrfHash readHandles;
+//static osrfHash * readHandles;
 static jsonObject* jsonNULL = NULL; // 
 static int max_flesh_depth = 100;
 
@@ -451,7 +451,7 @@ int beginTransaction ( osrfMethodContext* ctx ) {
                
                if (!ctx->session->userData) {
                        ctx->session->userData = osrfNewHash();
-                       ((osrfHash*)ctx->session->userData)->freeItem = &sessionDataFree;
+                       osrfHashSetCallback((osrfHash*)ctx->session->userData, &sessionDataFree);
                }
 
                osrfHashSet( (osrfHash*)ctx->session->userData, strdup( ctx->session->session_id ), "xact_id" );