aboutsummaryrefslogtreecommitdiff
path: root/lib/database-private.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-05-11 08:08:32 -0300
committerDavid Bremner <david@tethera.net>2021-05-14 06:38:19 -0300
commit929386fad90eed7dad8b32f457020c57a786d288 (patch)
treee38d784461c8e75352f8f84281f845d99b79297f /lib/database-private.h
parent8410be8e0867820c9814d06b49ff6da822d384a3 (diff)
lib/generate_thread_id: move static buffer to notmuch_database_t
Work towards the goal of concurrent access to different Xapian databases from the same process.
Diffstat (limited to 'lib/database-private.h')
-rw-r--r--lib/database-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h
index 0d12ec1e..1a73dacc 100644
--- a/lib/database-private.h
+++ b/lib/database-private.h
@@ -206,6 +206,10 @@ struct _notmuch_database {
enum _notmuch_features features;
unsigned int last_doc_id;
+
+ /* 16 bytes (+ terminator) for hexadecimal representation of
+ * a 64-bit integer. */
+ char thread_id_str[17];
uint64_t last_thread_id;
/* error reporting; this value persists only until the