Skip to content
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

Fixes #55

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pkg/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func (m MessageType) String() string {
return "CAT"
case MessageTypePut:
return "PUT"
case MessageTypePutV2:
return "PUTV2"
case MessageTypeCommandComplete:
return "COMMAND COMPLETE"
case MessageTypeReadyForQuery:
Expand Down
6 changes: 6 additions & 0 deletions pkg/proc/interaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ func ProcessPutExtended(
}
}()

for _, s := range settings {
ylogger.Zero.Debug().Str("name", name).Str("name", s.Name).Str("value", s.Value).Msg("offloading setting")
}

/* Should go after reader dispatch! */
err := s.PutFileToDest(name, r, settings)

Expand Down Expand Up @@ -187,6 +191,8 @@ func ProcConn(s storage.StorageInteractor, cr crypt.Crypter, ycl client.YproxyCl
msg := message.PutMessageV2{}
msg.Decode(body)

// ylogger.Zero.Debug().Bytes("msg", body).Msg("log info")

if err := ProcessPutExtended(s, pr, msg.Name, msg.Encrypt, msg.Settings, cr, ycl); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/tablespace/tablespace.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package tablespace

const DefaultTableSpace = "BASE"
const DefaultTableSpace = "pg_default"
Loading