hindex: fix cachekey inserting bug for partitioned table

This commit is contained in:
peiwangdb 2021-09-29 09:41:35 -07:00
parent ac16775138
commit cf6288e3ea
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ public class IndexCache
Path indexUri = Paths.get(index.getUri());
String partition = null;
// get partition name from path if present
for (int i = indexUri.getNameCount() - 1; i >= 0; i--) {
for (int i = 0; i < indexUri.getNameCount(); i++) {
if (indexUri.getName(i).toString().contains("=")) {
partition = indexUri.getName(i).toString();
break;