Closed Bug 1597959 Opened 5 years ago Closed 5 years ago

IDBDatabase::RenameObjectStore() should not search to the end if renaming unnecessary

Categories

(Core :: Storage: IndexedDB, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: ssengupta, Assigned: ssengupta)

Details

Attachments

(1 file)

If store ID and name both match for an object, renaming is unnecessary or has already happened. Search should terminate without further checking if another object has this name, assuming this check was already done before the current object got its name.

Pushed by ncsoregi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c47b4eedc16 Return from IDBDatabase::RenameObjectStore immediately if aObjectStoreId and aName both match. r=sg
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Assignee: nobody → ssengupta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: