[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] modify mrn_drop to force drop.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:28:45 JST 2012


Tetsuro IKEDA	2009-08-21 17:32:01 +0900 (Fri, 21 Aug 2009)

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

  Log:
    modify mrn_drop to force drop.

  Modified files:
    driver.c

  Modified: driver.c (+3 -2)
===================================================================
--- driver.c    2009-08-21 16:28:54 +0900 (891bf56)
+++ driver.c    2009-08-21 17:32:01 +0900 (04c5082)
@@ -430,9 +430,10 @@ int mrn_drop(grn_ctx *ctx, const char *table_name)
   return 0;
 
 err:
-  GRN_LOG(ctx, GRN_LOG_ERROR, "grn_ctx_get in mrn_drop failed:[%s,%d,%p,%p]",
+  GRN_LOG(ctx, GRN_LOG_ERROR, "grn_ctx_get return null:[%s,%d,%p,%p]",
           table_name, strlen(table_name), ctx, grn_ctx_db(ctx));
-  return -1;
+  // force drop table
+  return 0;
 }
 
 int mrn_write_row(grn_ctx *ctx, mrn_record *record)
-------------- next part --------------
HTML����������������������������...
Download 



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