summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/events/SetMetadata.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/events/SetMetadata.cpp b/src/server/events/SetMetadata.cpp
index efa57198..bef968fc 100644
--- a/src/server/events/SetMetadata.cpp
+++ b/src/server/events/SetMetadata.cpp
@@ -257,6 +257,10 @@ SetMetadata::pre_process()
_types.push_back(op);
}
+ if (!_create_event) {
+ _lock.release();
+ }
+
QueuedEvent::pre_process();
}
@@ -378,7 +382,9 @@ SetMetadata::post_process()
break;
}
- _lock.release();
+ if (_create_event) {
+ _lock.release();
+ }
}
} // namespace Server