Changeset: e136e08c2da6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e136e08c2da6
Modified Files:
        gdk/gdk_logger.c
        sql/storage/store.c
Branch: Dec2023
Log Message:

Print some more USR1 information.


diffs (30 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -3387,8 +3387,12 @@ log_printinfo(logger *lg)
        printf("number of catalog entries "BUNFMT", of which "BUNFMT" 
deleted\n",
               lg->catalog_bid->batCount, lg->dcatalog->batCount);
        int npend = 0;
-       for (logged_range *p = lg->pending; p; p = p->next)
+       for (logged_range *p = lg->pending; p; p = p->next) {
+               char buf[32];
+               if (p->output_log == NULL ||
+                   snprintf(buf, sizeof(buf), ", file size %"PRIu64, 
(uint64_t) getfilepos(getFile(lg->current->output_log))) >= (int) sizeof(buf))
+                       buf[0] = 0;
+               printf("pending range "ULLFMT": drops %"PRIu64", last_ts 
%"PRIu64", flushed_ts %"PRIu64", refcount %"PRIu64"%s%s\n", p->id, (uint64_t) 
ATOMIC_GET(&p->drops), (uint64_t) ATOMIC_GET(&p->last_ts), (uint64_t) 
ATOMIC_GET(&p->flushed_ts), (uint64_t) ATOMIC_GET(&p->refcount), buf, p == 
lg->current ? " (current)" : "");
                npend++;
-       if (npend > 1)
-               printf("number of pending ranges %d\n", npend);
+       }
 }
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -7392,6 +7392,7 @@ void
 store_printinfo(sqlstore *store)
 {
        MT_lock_set(&store->commit);
+       printf("SQL store oldest pending "ULLFMT"\n", store->oldest_pending);
        log_printinfo(store->logger);
        MT_lock_unset(&store->commit);
 }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to