Skip to content

Commit adb5778

Browse files
committed
Build and tool changes
1 parent 39aa96e commit adb5778

File tree

6 files changed

+1114
-970
lines changed

6 files changed

+1114
-970
lines changed

src/AppInstallerRepositoryCore/Microsoft/SQLiteIndex.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ namespace AppInstaller::Repository::Microsoft
4141
SQLiteIndex SQLiteIndex::OpenWithBaseline(const std::string& deltaFilePath, const std::string& baselineFilePath)
4242
{
4343
AICLI_LOG(Repo, Info, << "Opening delta index [" << deltaFilePath << "] with baseline [" << baselineFilePath << "]");
44-
SQLiteIndex result{ deltaFilePath, SQLiteStorageBase::OpenDisposition::ReadOnly };
44+
SQLiteIndex result{ deltaFilePath, SQLiteStorageBase::OpenDisposition::Read, {} };
4545

4646
std::filesystem::path baselinePath{ Utility::ConvertToUTF16(baselineFilePath) };
4747
THROW_HR_IF(E_INVALIDARG, baselinePath.empty() || baselinePath.is_relative());
4848

4949
result.m_contextData.Add<Schema::Property::DeltaBaselineIndexPath>(baselinePath);
5050

51+
// TODO: Add a new interface function for this rather than casting
5152
// The interface must be V2_0 to support delta read mode
52-
auto* v2Interface = dynamic_cast<Schema::V2_0::Interface*>(result.m_interface.get());
53-
THROW_HR_IF(E_NOTIMPL, v2Interface == nullptr);
54-
v2Interface->SetupDeltaReadMode(result.m_dbconn, baselinePath);
53+
//auto* v2Interface = dynamic_cast<Schema::V2_0::Interface*>(result.m_interface.get());
54+
//THROW_HR_IF(E_NOTIMPL, v2Interface == nullptr);
55+
//v2Interface->SetupDeltaReadMode(result.m_dbconn, baselinePath);
5556

5657
return result;
5758
}

0 commit comments

Comments
 (0)