[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] refactoring for mrn_hash_remove.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:19:02 JST 2012


Tetsuro IKEDA	2009-06-26 11:41:51 +0900 (Fri, 26 Jun 2009)

  New Revision: d8a4c776ed2eaa25fd7037b4fa41e2e9f9eb0521
  https://github.com/mroonga/mroonga/commit/d8a4c776ed2eaa25fd7037b4fa41e2e9f9eb0521

  Log:
    refactoring for mrn_hash_remove.

  Modified files:
    src/driver.c

  Modified: src/driver.c (+1 -2)
===================================================================
--- src/driver.c    2009-06-26 09:54:40 +0900 (5383a62)
+++ src/driver.c    2009-06-26 11:41:51 +0900 (58c6243)
@@ -216,11 +216,10 @@ int mrn_hash_remove(grn_ctx *ctx, const char *key)
 {
   int res = 0;
   grn_rc rc;
-  void *value;
   grn_id id;
   grn_search_flags flags = 0;
   pthread_mutex_lock(mrn_lock);
-  id = grn_hash_lookup(ctx, mrn_hash, (const char*) key, strlen(key), &value, &flags);
+  id = grn_hash_lookup(ctx, mrn_hash, (const char*) key, strlen(key), NULL, &flags);
   if (id == GRN_ID_NIL)
   {
     GRN_LOG(ctx, GRN_LOG_WARNING, "hash remove not found (key=%s)", key);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index