Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Cleanup bundle folder when creating a database fails
Description
When creating a new database, if somehow a failure happens after a bundle folder is created, an empty bundle folder will be left behind. As a result, when trying to create a database again later, "WrongFormat" will always be thrown.
Basically if a failure happens after the following line when creating a database, the empty bundle folder will be left behind:
When creating a new database, if somehow a failure happens after a bundle folder is created, an empty bundle folder will be left behind. As a result, when trying to create a database again later, "WrongFormat" will always be thrown.
Basically if a failure happens after the following line when creating a database, the empty bundle folder will be left behind:
https://github.com/couchbase/couchbase-lite-core/blob/master/LiteCore/Database/DatabaseImpl.cc#L122