better lifecycle handling when deleting an index

This commit is contained in:
kimchy 2010-03-31 22:46:21 +03:00
parent 6f9451f9c6
commit def8caf7db

View File

@ -175,7 +175,8 @@ public class IndexShardGatewayService extends AbstractIndexShardComponent implem
logger.debug("Snapshotting on close ...");
snapshot();
}
// don't really delete the shard gateway if we are primary...
// don't really delete the shard gateway if we are *not* primary,
// the primary will close it
if (!indexShard.routingEntry().primary()) {
delete = false;
}