blob: 7ea23f8d3a5cf829ee6f834f63e674d95b580d41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
x = 1;
shellHelper("show", "tables;");
shellHelper("show", "tables");
shellHelper("show", "tables ;");
// test slaveOk levels
assert(!db.getSlaveOk() && !db.test.getSlaveOk() && !db.getMongo().getSlaveOk(), "slaveOk 1");
db.getMongo().setSlaveOk();
assert(db.getSlaveOk() && db.test.getSlaveOk() && db.getMongo().getSlaveOk(), "slaveOk 2");
db.setSlaveOk(false);
assert(!db.getSlaveOk() && !db.test.getSlaveOk() && db.getMongo().getSlaveOk(), "slaveOk 3");
db.test.setSlaveOk(true);
assert(!db.getSlaveOk() && db.test.getSlaveOk() && db.getMongo().getSlaveOk(), "slaveOk 4");
|