Allow policy edits against the published snapshot during parallel receives
This commit is contained in:
1 parent
20ba312340
commit
e162b60961
1 file changed
-1
@@ -355,7 +355,6 @@ int group_policy_command(struct UTUN_INSTANCE* inst, const char* channel, int al
|
||||
struct strbuf json = strbuf_new(); char expected[65]; int result = -1, transaction = 0;
|
||||
const char* error = "unavailable";
|
||||
if (!output || !db || !chat_channel_id(channel) || (all != 0 && all != 1) || !sqlite3_get_autocommit(db)) goto done;
|
||||
if (group_policy_pending(db, channel)) { error = "sync_pending"; goto done; }
|
||||
if (group_policy_get(db, channel, &policy) || topo_node_sqlite_channel_get(db, channel, NULL, 0, &owner, NULL, NULL, NULL) ||
|
||||
merkle_sync_read_hash(inst, MT_DATA_MEMBERS, channel, 0, 0, root) || gp_load(inst, channel, &m, &count, 0)) goto done;
|
||||
for (int i = 0; i < 32; i++) snprintf(expected + i * 2, 3, "%02x", root[i]);
|
||||
|
||||
Reference in new issue
Block a user