mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-08 16:43:10 +00:00
add threadid
This commit is contained in:
parent
591b7f1fd4
commit
790b8449bd
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user