mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Update migrator to use InternalDB
This commit is contained in:
committed by
Dan Christian Bogos
parent
e95127d84a
commit
f9d8ac49f8
@@ -121,10 +121,10 @@ func testAcc2ITFlush(t *testing.T) {
|
||||
if acc2Migrator.dmOut.DataManager().DataDB().GetStorageType() != utils.REDIS {
|
||||
t.Errorf("Unexpected datadb type : %+v", acc2Migrator.dmOut.DataManager().DataDB().GetStorageType())
|
||||
}
|
||||
if acc2Migrator.storDBIn.StorDB().GetStorageType() != utils.MAPSTOR {
|
||||
if acc2Migrator.storDBIn.StorDB().GetStorageType() != utils.INTERNAL {
|
||||
t.Errorf("Unexpected datadb type : %+v", acc2Migrator.storDBIn.StorDB().GetStorageType())
|
||||
}
|
||||
if acc2Migrator.storDBOut.StorDB().GetStorageType() != utils.MAPSTOR {
|
||||
if acc2Migrator.storDBOut.StorDB().GetStorageType() != utils.INTERNAL {
|
||||
t.Errorf("Unexpected datadb type : %+v", acc2Migrator.storDBOut.StorDB().GetStorageType())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,13 +26,13 @@ import (
|
||||
func newMapStorDBMigrator(stor engine.StorDB) (mpMig *mapStorDBMigrator) {
|
||||
return &mapStorDBMigrator{
|
||||
storDB: &stor,
|
||||
mp: stor.(*engine.MapStorage),
|
||||
iDB: stor.(*engine.InternalDB),
|
||||
}
|
||||
}
|
||||
|
||||
type mapStorDBMigrator struct {
|
||||
storDB *engine.StorDB
|
||||
mp *engine.MapStorage
|
||||
iDB *engine.InternalDB
|
||||
dataKeys []string
|
||||
qryIdx *int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user