either commit() or the destructor needs to be in a write lock.  update the comments in Indexer