You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we assign two StorageObj to an in-memory StorageDict, and then call make_persistent their data is overlapped. The storage dict value name is used to generate the UUIDs, therefore, all entries get the same name and same UUID. They clash and overwrite each other.
In [2]: fromhecubaimportStorageObjIn [3]: fromhecubaimportStorageDict
...: classSObj(StorageObj):
...: ''' ...: @ClassField none int ...: '''
...:
...: classTest(StorageDict):
...: ''' ...: @TypeSpec dict<<lat:double>,val:__main__.SObj> ...: '''In [7]: a=SObj()
In [8]: a.none=123In [9]: b=SObj()
In [10]: b.none=256In [15]: c=Test()
In [17]: c[0]=aIn [18]: c[1]=bIn [19]: c.make_persistent('name')
If we assign two StorageObj to an in-memory StorageDict, and then call
make_persistent
their data is overlapped. The storage dict value name is used to generate the UUIDs, therefore, all entries get the same name and same UUID. They clash and overwrite each other.In Cassandra we have:
The text was updated successfully, but these errors were encountered: