Skip to content

Conversation

@dora-korpar
Copy link
Contributor

@dora-korpar dora-korpar commented Mar 6, 2018

Adds check for date modified headers in objectDelete API

Depends on scality/Arsenal#435

if (err) {
return process.nextTick(() => next(err, bucketMD));
}
return process.nextTick(() =>
Copy link
Contributor

Choose a reason for hiding this comment

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

curious, why process.nextTick?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

cos everything in the function is synchronous, so we gotta mimic async :)

Copy link
Contributor

Choose a reason for hiding this comment

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

cool beans ty for the explanation :)

if (err) {
return process.nextTick(() => next(err, bucketMD));
}
return process.nextTick(() =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This return is redundant as it will go the next one anyways.

@ironman-machine ironman-machine dismissed alexanderchan-scality’s stale review March 6, 2018 01:59

Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

philipyoo
philipyoo previously approved these changes Mar 6, 2018
@dora-korpar dora-korpar force-pushed the ft/objdel-add-modified-header-check branch from ec8f027 to 239db56 Compare March 7, 2018 18:26
@ironman-machine ironman-machine dismissed philipyoo’s stale review March 7, 2018 18:26

Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)

@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@dora-korpar dora-korpar force-pushed the ft/objdel-add-modified-header-check branch from 239db56 to 98c25f9 Compare April 11, 2018 00:06
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@dora-korpar dora-korpar force-pushed the ft/objdel-add-modified-header-check branch from 98c25f9 to a02d226 Compare April 11, 2018 00:33
@ironman-machine
Copy link
Contributor

PR has been updated. Reviewers, please be cautious.

@rahulreddy rahulreddy merged commit abc4fd2 into master Apr 11, 2018
@rahulreddy rahulreddy deleted the ft/objdel-add-modified-header-check branch April 11, 2018 03:20
BourgoisMickael added a commit that referenced this pull request Sep 16, 2025
Tests for this #1145
To run in Integration

See S3C-10376
BourgoisMickael added a commit that referenced this pull request Sep 16, 2025
Tests for this #1145
To run in Integration

See S3C-10376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants