dzitkowskik / mini-dos

Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015
Apache License 2.0
0 stars 0 forks source link

Update master metadata when delete #81

Open davidmigloz opened 8 years ago

davidmigloz commented 8 years ago

Currently, when you delete some rows, they are deleted in nodes db, but the metadata of this rows in master is not deleted.

So we have to:

  1. Coordinator node has to look for the rowIDs that is going to delete that query. It has to run a select in all nodes that have the table, with the where that the delete query has.
  2. It has to send them to master in DeleteMetadataRequest.
  3. Master has to delete the metadata of those rowIDs.
  DELETE FROM Customers
  WHERE City IN ('Paris','London');

  SELECT row_id FROM Customers
  WHERE City IN ('Paris','London');