Browse Source

maybe have a dirty read

master
Savorboard 7 years ago
parent
commit
56c9629d3f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs

+ 1
- 0
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs View File

@@ -47,6 +47,7 @@ namespace DotNetCore.CAP.MySql
//DELETE FROM [{_prefix}].[Queue] LIMIT 1;
//COMMIT;

//TODO : here maybe have a dirty read
var sql = $@"
SELECT `MessageId`,`MessageType` FROM `{_prefix}.queue` LIMIT 1;
DELETE FROM `{_prefix}.queue` LIMIT 1;";


Loading…
Cancel
Save