code: void updateHtindex(int index, long value, int tableid) {
          if (tableid == header.currentTableId()) {
              htindex[index] = value;
          } else {
              new_htindex[index] = value;
          }
      }
docs: ************************************************************************
  Write the object pointer to the table. If we are in the process of
  doubling, this method finds the correct table to update (since there are
  two tables active during the doubling process).
  ***********************************************************************