Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sds-keyval
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
sds-keyval
Commits
8956c438
Commit
8956c438
authored
Mar 07, 2019
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added locking in post-migration callback
parent
36b88282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/sdskv-server.cc
src/sdskv-server.cc
+3
-0
No files found.
src/sdskv-server.cc
View file @
8956c438
...
...
@@ -306,6 +306,9 @@ extern "C" int sdskv_provider_attach_database(
db
->
set_no_overwrite
();
}
ABT_rwlock_wrlock
(
provider
->
lock
);
auto
r
=
at_exit
([
provider
]()
{
ABT_rwlock_unlock
(
provider
->
lock
);
});
provider
->
name2id
[
std
::
string
(
config
->
db_name
)]
=
id
;
provider
->
id2name
[
id
]
=
std
::
string
(
config
->
db_name
);
provider
->
databases
[
id
]
=
db
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment