diff --git a/datastore/sharedds.nim b/datastore/sharedds.nim index 83504ce..eb4eeea 100644 --- a/datastore/sharedds.nim +++ b/datastore/sharedds.nim @@ -85,6 +85,7 @@ proc newSharedDataStore*( res[].signal = ThreadSignalPtr.new().valueOr: return failure newException(DatastoreError, "error creating signal") + echo "\nnewDataStore: threadId:", getThreadId() res.createThreadDatastore(backend) await wait(res[].signal) res[].signal.close() diff --git a/datastore/threadbackend.nim b/datastore/threadbackend.nim index 96f7229..acc36c5 100644 --- a/datastore/threadbackend.nim +++ b/datastore/threadbackend.nim @@ -75,7 +75,9 @@ proc startupDatastore( count: TestPtr, ) {.raises: [].} = ## starts up a FS instance on a give thread - echo "\n\nstartupDatastore: ret:\n", ret.repr + echo "\n" + echo "\nstartupDatastore: threadId:", getThreadId() + echo "\nstartupDatastore: ret:\n", ret.repr echo "\nstartupDatastore: backend:\n", backend.repr echo "\nstartupDatastore: count:\n", count.repr