You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/10/27 18:42:16 UTC
[GitHub] [couchdb] nickva opened a new pull request, #4245: Fix smoosh get_priority/2 case clause
nickva opened a new pull request, #4245:
URL: https://github.com/apache/couchdb/pull/4245
Fixes the case when get_index/3 returns a `database_not_found` error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on pull request #4245: Fix smoosh get_priority/2 case clause
Posted by GitBox <gi...@apache.org>.
nickva commented on PR #4245:
URL: https://github.com/apache/couchdb/pull/4245#issuecomment-1293927901
Before:
```
smoosh_server:get_priority(foo, {<<"shards/80000000-ffffffff/db2.1666895357">>, <<"x">>}).
** exception error: no case clause matching {database_does_not_exist,
[{mem3_shards,load_shards_from_db,"db2",
[{file,"src/mem3_shards.erl"},{line,430}]},
{mem3_shards,load_shards_from_disk,1,
[{file,"src/mem3_shards.erl"},{line,405}]},
{mem3_shards,load_shards_from_disk,2,
[{file,"src/mem3_shards.erl"},{line,434}]},
{mem3_shards,for_docid,3,
[{file,"src/mem3_shards.erl"},{line,100}]},
{fabric_doc_open,go,3,
[{file,"src/fabric_doc_open.erl"},{line,39}]},
{couch_index_server,'-get_index/3-fun-0-',2,
[{file,"src/couch_index_server.erl"},{line,74}]}]}
in function smoosh_server:get_priority/2 (src/smoosh_server.erl, line 348)
```
With the PR:
```
smoosh_server:get_priority(foo, {<<"shards/80000000-ffffffff/db2.1666895357">>, <<"x">>}).
0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva merged pull request #4245: Fix smoosh get_priority/2 case clause
Posted by GitBox <gi...@apache.org>.
nickva merged PR #4245:
URL: https://github.com/apache/couchdb/pull/4245
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org