Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 46b6737

Browse files
committed
rm_node fix
1 parent 5a531a1 commit 46b6737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pg_shardman.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ rm_node(Cmd *cmd)
805805
SPI_EPILOG;
806806
}
807807
pfree(sql);
808-
if (parts_on_node != 0)
808+
if (!force && parts_on_node != 0)
809809
{
810810
shmn_elog(WARNING, "Can't remove node %d with existing shards. Add \"force\" option to ignore this",
811811
node_id);

0 commit comments

Comments
 (0)