Changeset: 3c74ddd2cdc5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=3c74ddd2cdc5
Modified Files:
        gdk/gdk_logger.c
Branch: Jun2016
Log Message:

The comment already said it: if this is a shared logger.


diffs (26 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -1092,9 +1092,11 @@ logger_readlogs(logger *lg, FILE *fp, ch
                        if (lid < lg->id) {
                                lg->id = lid;
                        }
-                       /* if this is a shared logger, write the id in
-                        * the shared file */
-                       logger_update_catalog_file(lg, lg->local_dir, 
LOGFILE_SHARED, lg->local_dbfarm_role);
+                       if (lg->shared) {
+                               /* if this is a shared logger, write the id in
+                                * the shared file */
+                               logger_update_catalog_file(lg, lg->local_dir, 
LOGFILE_SHARED, lg->local_dbfarm_role);
+                       }
                }
        }
        return res;
@@ -1848,6 +1850,7 @@ logger_new(int debug, const char *fn, co
 
        lg->debug = debug;
        lg->shared = shared;
+       lg->local_dbfarm_role = 0; /* only used if lg->shared */
 
        lg->changes = 0;
        lg->version = version;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to