Skip to content

Commit

Permalink
Fixes (#55)
Browse files Browse the repository at this point in the history
* Fixes

* Fixes & nitpick
  • Loading branch information
reshke authored Aug 26, 2024
1 parent 22e6d9a commit 183dd69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
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"

0 comments on commit 183dd69

Please sign in to comment.