driver-legacy/src/main/com/mongodb/Mongo.java
@Deprecated
    public boolean isLocked() {
        return createOperationExecutor().execute(new CurrentOpOperation(), ReadPreference.primary(), readConcern)
                       .getBoolean("fsyncLock", BsonBoolean.FALSE).getValue();
    }
@Deprecated
    public boolean isLocked() {
        return createOperationExecutor().execute(new CurrentOpOperation(), ReadPreference.primary(), readConcern)
                       .getBoolean("fsyncLock", BsonBoolean.FALSE).getValue();
    }
Returns true if the database is locked (read-only), false otherwise.

@return result of the command execution
@throws MongoException if the operation fails
@mongodb.driver.manual reference/command/fsync/ fsync command