Permalink
Browse files

another bug fix in MockStoreClientFactory

  • Loading branch information...
1 parent ebdf7fd commit e5642fc36669c90ba0b6506add20d279a91cc617 @nehanarkhede nehanarkhede committed Jun 23, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/java/voldemort/client/MockStoreClientFactory.java
View
8 src/java/voldemort/client/MockStoreClientFactory.java
@@ -161,7 +161,13 @@ public MockStoreClientFactory(Serializer<?> keySerializer,
// resolver (if they gave us one)
InconsistencyResolver<Versioned<V1>> secondaryResolver = new TimeBasedInconsistencyResolver();
- StorageEngine engine = new InMemoryStorageEngine(storeDef.getViewTargetStoreName());
+ StorageEngine engine;
+
+ if(storeDef.isView())
+ engine = new InMemoryStorageEngine(storeDef.getViewTargetStoreName());
+ else
+ engine = new InMemoryStorageEngine(storeDef.getName());
+
if(storeDef.isView()) {
// instantiate view
String targetName = storeDef.getViewTargetStoreName();

0 comments on commit e5642fc

Please sign in to comment.