瀏覽代碼

maybe have a dirty read

master
Savorboard 7 年之前
父節點
當前提交
56c9629d3f
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs

+ 1
- 0
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs 查看文件

@@ -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…
取消
儲存