-
Notifications
You must be signed in to change notification settings - Fork 596
feat(services/swift): Added user metadata support for swift service #5601
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@Xuanwo CI passed. PTAL |
bin/ofs/Cargo.lock
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, please don't touch unrelated files.
core/src/services/swift/backend.rs
Outdated
@@ -221,12 +223,24 @@ impl Access for SwiftBackend { | |||
|
|||
async fn stat(&self, path: &str, _args: OpStat) -> Result<RpStat> { | |||
let resp = self.core.swift_get_metadata(path).await?; | |||
debug!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove debug lins like this.
core/src/services/swift/backend.rs
Outdated
let meta = parse_into_metadata(path, resp.headers())?; | ||
let headers = resp.headers(); | ||
let mut meta = parse_into_metadata(path, headers)?; | ||
// 添加日志:记录解析前的原始头部 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same.
core/src/services/swift/core.rs
Outdated
@@ -15,6 +15,7 @@ | |||
// specific language governing permissions and limitations | |||
// under the License. | |||
|
|||
use log::debug; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't add debug links in services.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @zhaohaidao for working on this!
Which issue does this PR close?
Closes swift service task for #4842
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?