Changeset: 2eaef1f0109d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2eaef1f0109d
Modified Files:
tools/monetdbe/monetdbe.c
Branch: resource_management
Log Message:
monetdbe needs tls allocator
diffs (17 lines):
diff --git a/tools/monetdbe/monetdbe.c b/tools/monetdbe/monetdbe.c
--- a/tools/monetdbe/monetdbe.c
+++ b/tools/monetdbe/monetdbe.c
@@ -943,6 +943,13 @@ monetdbe_open(monetdbe_database *dbhdl,
if (res == 0 && is_remote && !mdbe->msg)
res = monetdbe_open_remote(mdbe, opts);
+ allocator *ta = MT_thread_getallocator();
+ if (!ta) {
+ allocator *ma = create_allocator(NULL, MT_thread_getname(),
false);
+ assert(ma);
+ if (ma)
+ MT_thread_setallocator(ma);
+ }
MT_lock_unset(&embedded_lock);
if (mdbe->msg)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]