The c-treeDB ctdbGetRecordCount() function sometimes returned an incorrect count when it was called on a table without a $ROWID, $RECBYT, or unique index, and the first index was conditional or supported null keys. The logic has been modified to correct this obscure situation.