[Groonga-commit] groonga/groonga at 280fe95 [master] io_flush: remove needless codes

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Mar 7 17:12:17 JST 2018


Kouhei Sutou	2018-03-07 17:12:17 +0900 (Wed, 07 Mar 2018)

  New Revision: 280fe95b9c5e62d8cee3dca3dc858a192aa6a510
  https://github.com/groonga/groonga/commit/280fe95b9c5e62d8cee3dca3dc858a192aa6a510

  Message:
    io_flush: remove needless codes
    
    Dirty flag is already cleaned in DB API.

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+0 -11)
===================================================================
--- lib/proc.c    2018-03-07 17:11:52 +0900 (7a43f61cf)
+++ lib/proc.c    2018-03-07 17:12:17 +0900 (b860cfb74)
@@ -3740,22 +3740,11 @@ proc_io_flush(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)
         }
       } GRN_TABLE_EACH_END(ctx, cursor);
       if (rc == GRN_SUCCESS) {
-        rc = grn_db_clear_dirty(ctx, target);
-      }
-      if (rc == GRN_SUCCESS) {
         rc = grn_obj_flush(ctx, target);
       }
     } else {
       if (is_recursive) {
         rc = grn_obj_flush_recursive(ctx, target);
-        if (target->header.type == GRN_DB) {
-          if (rc == GRN_SUCCESS) {
-            rc = grn_db_clear_dirty(ctx, target);
-          }
-          if (rc == GRN_SUCCESS) {
-            rc = grn_obj_flush(ctx, target);
-          }
-        }
       } else {
         rc = grn_obj_flush(ctx, target);
       }
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180307/5e2e1134/attachment.htm 



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