After a c-treeDB ctdbAlterTable() call was used to add a new index, a ctdbRenameTable() call failed to rename the default index associated with the table (default index containing rowid or recbyt or even an index created together with the table without assigning a filename). The logic has been modified to handle this situation correctly.