Cloud Storage: open and clean up "Not used by any item found" #12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The top row of the Cloud Storage popup, "Not used by any item found", is used storage the cloud reports minus what the scan found. It can't be opened, so there is no way to see or delete what makes it up (292 MB in the case that prompted this).
Cause found
Items and voice messages sent in chat are saved as cloud records the sender owns (
EngineSkyFrostExtensions.CreateObjectMessage/CreateSoundMessage), taggedmessage_item, with no path. They count toward storage, but the inventory walk never reaches them and the worlds search only asks for worlds. The game's own AccountDump tool (CloudAccountDataStore.GetRecords) finds every record a user owns by searching by owner with no record type, in date windows, then walking the inventory.Plan
Sent in messagesformessage_itemrecords, the record's own path for records in folders the inventory no longer reaches,No folderotherwise. Pure, tested classification.0.7.14 is built, pushed (
dbe0a68) and hot-loaded into the running game with no errors.Done:
CloudAccountDataStore.GetRecordsdoes it, and keeps what the inventory walk and worlds search missed.Sent in messages, the path of a folder the inventory no longer reaches, orNo folder. Each page says what its records are.Verified: 94 tests, 93 pass and the opt-in real-data round trip skips. 6 of them are new: the folder classification and listing a folder's items.
Not verified yet: the owner search against the real cloud, and the preview, spawn and play buttons. They need a Rescan in game. The log line now reads "… N of them outside the inventory", which shows how much the search found.
0.7.15 (pushed, hot-loaded, no errors): "Sent in messages" showed only Delete, because Copy and Move needed every record in the folder to be copyable and voice messages aren't. Copy and Move now take the objects and worlds and leave the rest; the result counts what was left out. Ticked rows work the same way. 93 tests pass, 1 opt-in skipped.
From the in-game scan (log, 01:44): 642 items take 1.9 GB, 480 of them outside the inventory, but the cloud reports 1004 MB used. Before, the 162 inventory items took 734 MB. So much of what the outside records use is not charged to the user, and their unique sizes overstate what deleting them frees. Cause not yet known.
Released as v0.7.15 (tag on
199f87c, Release build, 93 tests pass, 1 opt-in skipped). Left open until the in-game move from Sent in messages is checked.Verified in game: the rescan found 480 records outside the inventory, and moving out of Sent in messages works. Closing. Why the cloud charges less than the scan counts moved to #13.