Kota-SH commented on code in PR #7558:
URL: https://github.com/apache/hbase/pull/7558#discussion_r2734766210


##########
hbase-common/src/main/java/org/apache/hadoop/hbase/InnerStoreCellComparator.java:
##########
@@ -75,8 +75,13 @@ public static CellComparator 
getInnerStoreCellComparator(TableName tableName) {
    * @return CellComparator to use going off the {@code tableName} passed.
    */
   public static CellComparator getInnerStoreCellComparator(byte[] tableName) {
-    return Bytes.equals(tableName, TableName.META_TABLE_NAME.toBytes())
+    // Check if this is a meta table (hbase:meta or hbase:meta_*)
+    return isMetaTable(tableName)
       ? MetaCellComparator.META_COMPARATOR
       : InnerStoreCellComparator.INNER_STORE_COMPARATOR;
   }
+
+  private static boolean isMetaTable(byte[] tableName) {
+    return Bytes.startsWith(tableName, Bytes.toBytes("hbase:meta"));

Review Comment:
   This is for pattern matching to identify the meta tables. Default or with 
suffix, meta table name would start with "hbase:meta". So we need this string 
to check.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to