Permalink
Browse files

Merge branch 'server-transforms' of http://github.com/nehanarkhede/vo…

…ldemort into server-transforms
  • Loading branch information...
2 parents 4f6b70b + e5642fc commit a86e1a2a168b9154388730d021b2b799e9186ca2 @afeinberg afeinberg committed Jun 23, 2010
Showing with 7 additions and 1 deletion.
  1. +7 −1 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 a86e1a2

Please sign in to comment.