mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #12913 from appwrite/cursor/mongo-healthcheck-primary-c625
Fix MongoDB healthcheck false-positive before replica-set primary
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1306,7 +1306,7 @@ services:
|
||||
mongosh -u root -p ${_APP_DB_ROOT_PASS} --authenticationDatabase admin --quiet --eval \"
|
||||
try {
|
||||
const hello = db.adminCommand({hello: 1});
|
||||
if (hello.isWritablePrimary) {
|
||||
if (hello.isWritablePrimary && hello.setName === 'rs0') {
|
||||
quit(0);
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
Reference in new issue
Block a user