Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: Migrate away from \OCP\IDBConnection::insertIfNotExist#57124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
provokateurin wants to merge2 commits intomaster
base:master
Choose a base branch
Loading
fromrefactor/insert-if-not-exists

Conversation

@provokateurin
Copy link
Member

A unique index must be used to actually guarantee no duplicates, as this method is not even transaction safe (with READ_COMMITTED)

Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
@provokateurinprovokateurin added this to theNextcloud 33 milestoneDec 16, 2025
@provokateurinprovokateurin requested a review froma team as acode ownerDecember 16, 2025 11:35
@provokateurinprovokateurin requested review fromAltahrim,CarlSchwan,icewind1991 andleftybournes and removed request fora teamDecember 16, 2025 11:35
if ($e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
$mountPoint =$tmpMountPointName .'-' .$i;
$i++;
continue;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No risk of infinite loop?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yes, but this was already the case before. The sharding tests are running into a timeout on some tests, so that could be related (but I don't see why yet).

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tcitworldtcitworldtcitworld left review comments

@SystemKeeperSystemKeeperAwaiting requested review from SystemKeeper

@icewind1991icewind1991Awaiting requested review from icewind1991icewind1991 is a code owner automatically assigned from nextcloud/server-backend

@AltahrimAltahrimAwaiting requested review from AltahrimAltahrim is a code owner automatically assigned from nextcloud/server-backend

@leftybournesleftybournesAwaiting requested review from leftybournesleftybournes is a code owner automatically assigned from nextcloud/server-backend

@CarlSchwanCarlSchwanAwaiting requested review from CarlSchwanCarlSchwan is a code owner automatically assigned from nextcloud/server-backend

At least 2 approving reviews are required to merge this pull request.

Assignees

No one assigned

Labels

3. to reviewWaiting for reviewstechnical debt

Projects

None yet

Milestone

Nextcloud 33

Development

Successfully merging this pull request may close these issues.

2 participants

@provokateurin@tcitworld

[8]ページ先頭

©2009-2025 Movatter.jp