Skip to content

Commit

Permalink
handle empty traces (#5028)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode authored Jan 7, 2025
1 parent b2059f6 commit cc2dd41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/better-eos-traces.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Enhancement: Handle empty EOS traces

https://github.com/cs3org/reva/pull/5028
5 changes: 4 additions & 1 deletion pkg/eosclient/eosbinary/eosbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ func (c *Client) executeEOS(ctx context.Context, cmdArgs []string, auth eosclien

cmd.Args = append(cmd.Args, cmdArgs...)

cmd.Args = append(cmd.Args, "--comment", trace.Get(ctx))
t := trace.Get(ctx)
if t != "" {
cmd.Args = append(cmd.Args, "--comment", t)
}

err := cmd.Run()

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/fs/cephfs/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ package cephfs
*/
import "C"
import (
"fmt"
"context"
"fmt"
"github.com/cs3org/reva/pkg/appctx"
"github.com/cs3org/reva/pkg/errtypes"
)
Expand Down

0 comments on commit cc2dd41

Please sign in to comment.