Win: Removing BackingStore.cpp and adding ObjectStore::create call to fix the build.

Reviewed By: chadaustin

Differential Revision: D10503338

fbshipit-source-id: 30ddc435aff4554c7b7edaa29218074f1149fdc7
This commit is contained in:
Puneet Kaushik 2018-10-23 10:33:00 -07:00 committed by Facebook Github Bot
parent 742e1e34b8
commit c292d5e9bf
3 changed files with 2 additions and 6 deletions

View File

@ -184,7 +184,6 @@
<ClCompile Include="..\..\fs\service\oss\RunServer.cpp" />
<ClCompile Include="..\..\fs\service\StreamingSubscriber.cpp" />
<ClCompile Include="..\..\fs\sqlite\Sqlite.cpp" />
<ClCompile Include="..\..\fs\store\BackingStore.cpp" />
<ClCompile Include="..\..\fs\store\EmptyBackingStore.cpp" />
<ClCompile Include="..\..\fs\store\hg\HgBackingStore.cpp" />
<ClCompile Include="..\..\fs\store\hg\HgImporter.cpp" />

View File

@ -143,9 +143,6 @@
<ClCompile Include="..\..\fs\utils\UnboundedQueueExecutor.cpp">
<Filter>fs\Util</Filter>
</ClCompile>
<ClCompile Include="..\..\fs\store\BackingStore.cpp">
<Filter>fs\Store</Filter>
</ClCompile>
<ClCompile Include="..\..\fs\service\EdenError.cpp">
<Filter>fs\Service</Filter>
</ClCompile>

View File

@ -84,7 +84,7 @@ AbsolutePathPiece etcEdenDir_ = "c:\\eden\\etcedendir"_abspath;
AbsolutePathPiece configPath_ = "c:\\eden\\configpath\\.edenrc"_abspath;
shared_ptr<BackingStore> backingStore_;
unique_ptr<ObjectStore> objectStore_;
shared_ptr<ObjectStore> objectStore_;
shared_ptr<BackingStore> createBackingStore(
StringPiece type,
@ -120,7 +120,7 @@ void startBackingStore() {
cout << "CreateBackingStore" << endl;
backingStore_ = createBackingStore("hg", "c:\\open\\fbsource");
objectStore_ = std::make_unique<ObjectStore>(localStore_, backingStore_);
objectStore_ = ObjectStore::create(localStore_, backingStore_);
// facebook::eden::Hash commitID("777362dde8e5");
// facebook::eden::Hash commitID("777362dde8e574bda92c42816b7df0de0e8aba39");