fix: resolve race condition in entrypoint and simplify ND_DBPATH
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 53s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 53s
This commit is contained in:
@@ -31,6 +31,9 @@ echo "Starting leadership-aware entrypoint..."
|
||||
echo "Node IP: $NODE_IP"
|
||||
echo "Consul: $CONSUL_HTTP_ADDR"
|
||||
|
||||
# Small sleep to let LiteFS settle and leadership election complete
|
||||
sleep 5
|
||||
|
||||
while true; do
|
||||
# In LiteFS 0.5, .primary file exists ONLY on replicas.
|
||||
if [ ! -f /data/.primary ]; then
|
||||
|
||||
Reference in New Issue
Block a user