Skip to content
Snippets Groups Projects
  1. Apr 03, 2024
  2. Apr 01, 2024
  3. Mar 29, 2024
  4. Mar 28, 2024
  5. Mar 27, 2024
  6. Mar 26, 2024
  7. Mar 20, 2024
  8. Mar 19, 2024
  9. Mar 18, 2024
  10. Mar 13, 2024
    • Yaroslav Dynnikov's avatar
      chore: unify codestyle in governor/plan.rs · 2e9a270e
      Yaroslav Dynnikov authored
      Here's the order of plan stages for memories:
      
      ```
      $ grep "return Ok" src/governor/plan.rs
      return Ok(ConfChange { conf_change }.into());
      return Ok(TransferLeadership { to: new_leader }.into());
      return Ok(Downgrade { req }.into());
      return Ok(CreateReplicaset { master_id, replicaset_id, rpc, op }.into());
      return Ok(UpdateTargetReplicasetMaster { op }.into());
      return Ok(Replication { targets, master_id, replicaset_peers, req }.into());
      return Ok(UpdateCurrentReplicasetMaster { old_master_id, demote, new_master_id, sync_and_promote, replicaset_id, op }.into());
      return Ok(ProposeReplicasetStateChanges { op }.into());
      return Ok(UpdateTargetVshardConfig { dml }.into());
      return Ok(UpdateCurrentVshardConfig { targets, rpc, dml }.into());
      return Ok(ShardingBoot { target, rpc, op }.into());
      return Ok(ToOnline { target, rpc, req }.into());
      return Ok(ApplySchemaChange { rpc, targets }.into());
      ```
      2e9a270e
    • Arseniy Volynets's avatar
      feat: support batch dml · ab377bad
      Arseniy Volynets authored and Georgy Moshkin's avatar Georgy Moshkin committed
      - Add new DML op: Batch, which allows
      using multiple dml operations in one
      CAS request
      - If request has too many dml operations,
      the batch will be splitted into multiple
      batches, so that each batch can be stored
      in raft log
      ab377bad
    • Arseniy Volynets's avatar
      refactor: extract applying dml op into a func · ca21a43f
      Arseniy Volynets authored and Georgy Moshkin's avatar Georgy Moshkin committed
      ca21a43f
    • Arseniy Volynets's avatar
      fix: check prohibited spaces against op, not ranges · 5ead8a7d
      Arseniy Volynets authored and Georgy Moshkin's avatar Georgy Moshkin committed
      5ead8a7d
    • Georgy Moshkin's avatar
      test: simplify test_audit.py · 73076b4e
      Georgy Moshkin authored and Yaroslav Dynnikov's avatar Yaroslav Dynnikov committed
      There was a huge amount of boilerplate code with redundant abstractions.
      The test code must be as simple as possible and making abstractions over
      simple data is not a way to go, especially when builtin types such as
      dict do the trick just as easily.
      
      The prettiness of the test code should be out lowest priority.
      73076b4e
  11. Mar 12, 2024
  12. Mar 11, 2024
  13. Mar 07, 2024
    • Arseniy Volynets's avatar
      fix: dropping already dropped space should error · a3f71d6f
      Arseniy Volynets authored
      - Earlier sbroad grammar didn't check space to
      be deleted in drop clause, after grammar refactoring
      all tables are checked in parsing stage and now
      we should get the error that such space does not
      exist.
      a3f71d6f
    • Arseniy Volynets's avatar
      feat: support grant revoke procedure from sql · df8eb430
      Arseniy Volynets authored
      - Update sbroad submodule to commit with
      grant/revoke procedure support
      - Use existing mechanisms for grant/revoke
      ACL opcodes for grant/revoke procedure
      implementation
      - Add integration tests
      - Valid combinations:
      
      all procedures: grant/revoke create/execute/drop
      specific procedure: grant/revoke execute/drop
      
      - Syntax:
      
      grant create procedure to alice option(timeout=3)
      grant execute procedure on "spam"(int) to "alex"
      grant drop procedure on foo to bob
      revoke drop procedure on foo from bob
      df8eb430
    • Georgy Moshkin's avatar
      a0c3eaa1
    • Georgy Moshkin's avatar
      chore: clippy warning · 5320f8ca
      Georgy Moshkin authored
      5320f8ca
    • Maksim Kaitmazian's avatar
      feat: add portal/statement storages · 3521184b
      Maksim Kaitmazian authored
      This commit introduces:
       * statement and portal storages;
       * statements with parameter oids;
       * portal encoding;
       * interactive portals;
      
      Portal encoding defines in which format (binary or text) columns
      are returned.
      
      Interactive portals allow to limit the number of rows returned from
      execute method. Other rows can be extracted by calling execute again
      on the same portal.
      3521184b
Loading