Ignore table config store

This commit is contained in:
Asdine El Hrychy
2019-11-01 16:46:52 +01:00
parent 285a3f6c52
commit 9e8961ea9e
2 changed files with 4 additions and 4 deletions

2
db.go
View File

@@ -325,7 +325,7 @@ func (tx Tx) ListTables() ([]string, error) {
idxPrefix := indexPrefix + string([]byte{separator})
for _, st := range stores {
if st == indexTable {
if st == indexStoreName || st == tableConfigStoreName {
continue
}
if strings.HasPrefix(st, idxPrefix) {

View File

@@ -844,12 +844,12 @@ func TestTxListTables(t *testing.T) {
tx, cleanup := newTestDB(t)
defer cleanup()
_, err := tx.CreateTable("a")
err := tx.CreateTable("a", nil)
require.NoError(t, err)
_, err = tx.CreateTable("b")
err = tx.CreateTable("b", nil)
require.NoError(t, err)
_, err = tx.CreateIndex(index.Options{
err = tx.CreateIndex(index.Options{
IndexName: "idxa",
TableName: "a",
FieldName: "foo",