#[throws(ME)]
fn execute(cs: &mut CommandStream, cmd: MgmtCommand) -> MgmtResponse {
-// use MgmtError::*;
+ eprintln!("{:?} executing {:?}", &cs.desc, &cmd);
match cmd {
Noop { } => Fine { },
#[derive(Debug,Default)]
struct UpdateHandlerBulk {
- pieces : SecondarySlotMap<PieceId, PieceUpdateOp<()>>,
+ pieces : slotmap::SparseSecondaryMap<PieceId, PieceUpdateOp<()>>,
}
#[derive(Debug)]
( _ , _ ) => Some( Modify(()) ),
};
match ne {
- Some(ne) => { bulk.pieces[upiece] = ne; },
+ Some(ne) => { bulk.pieces.insert(upiece, ne); },
None => { bulk.pieces.remove(upiece); },
};
}