diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java index 98c1008..3909eb1 100644 --- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java +++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java @@ -116,7 +116,8 @@ public class LoggingRepositoryBuilder extends AbstractRepositoryBuilder { }
public boolean isMaster() {
- return mMaster;
+ return mMaster != null ? mMaster
+ : (mRepoBuilder != null ? mRepoBuilder.isMaster() : false);
}
/**
|