Fixed missing reindex command.
Fixed flags for history log bad file descriptor.
Added user feedback for reindexing.