Fix bug in DatastoreContext copy constructor 45/29945/1
authorGary Wu <gary.wu1@huawei.com>
Thu, 19 Nov 2015 23:42:00 +0000 (15:42 -0800)
committerGary Wu <gary.wu1@huawei.com>
Thu, 19 Nov 2015 23:42:00 +0000 (15:42 -0800)
Change-Id: I0ea1f79a8ab3f092a76b690f5f2089c3a2e7d6cb
Signed-off-by: Gary Wu <gary.wu1@huawei.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/DatastoreContext.java

index 4f7d68ea52861ae923212d4c8aa13668ae00b473..c8be6aba9dc51f79493925d66a3d80ab27546737 100644 (file)
@@ -103,7 +103,7 @@ public class DatastoreContext {
         this.writeOnlyTransactionOptimizationsEnabled = other.writeOnlyTransactionOptimizationsEnabled;
         this.shardCommitQueueExpiryTimeoutInMillis = other.shardCommitQueueExpiryTimeoutInMillis;
         this.transactionDebugContextEnabled = other.transactionDebugContextEnabled;
-        this.shardManagerPersistenceId = shardManagerPersistenceId;
+        this.shardManagerPersistenceId = other.shardManagerPersistenceId;
 
         setShardJournalRecoveryLogBatchSize(other.raftConfig.getJournalRecoveryLogBatchSize());
         setSnapshotBatchCount(other.raftConfig.getSnapshotBatchCount());