From ae38b9d640eb5754300c254a88228ff6fbbd5974 Mon Sep 17 00:00:00 2001 From: AlbertXingZhang <12808025+AlbertXingZhang@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:23:50 -0700 Subject: [PATCH] OpenFileGDB: add missing GetIndexCount() in FileGDBTable::CreateIndex --- ogr/ogrsf_frmts/openfilegdb/filegdbindex_write.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ogr/ogrsf_frmts/openfilegdb/filegdbindex_write.cpp b/ogr/ogrsf_frmts/openfilegdb/filegdbindex_write.cpp index fb477682c525..5dfb4367b9d3 100644 --- a/ogr/ogrsf_frmts/openfilegdb/filegdbindex_write.cpp +++ b/ogr/ogrsf_frmts/openfilegdb/filegdbindex_write.cpp @@ -163,6 +163,7 @@ bool FileGDBTable::CreateIndex(const std::string &osIndexName, return false; } + GetIndexCount(); for (const auto &poIndex : m_apoIndexes) { if (EQUAL(poIndex->GetIndexName().c_str(), osIndexName.c_str()))