Commit a46c0e5c authored by jan.koester's avatar jan.koester
Browse files

test

parent efdf0f83
Loading
Loading
Loading
Loading

src/backend.cpp.rej

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
--- src/backend.cpp
+++ src/backend.cpp
@@ -2578,6 +2578,9 @@
 
 std::optional<AlbumRecord> ClusterMediaBackend::create_album(const std::string& store_id, const std::string& name) {
+    if (!initial_sync_ok_.load()) {
+        throw std::runtime_error("Cluster node isolated or syncing. Try again later.");
+    }
     std::unique_lock<std::shared_mutex> cguard(cluster_op_mutex_);
     auto a = local_.create_album(store_id, name);
     if (a) replicate_store(store_id);